package com.lhd.qd.common.handler;

import com.lhd.qd.module.system.dict.service.DictCacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class DictCacheRunner implements CommandLineRunner {

    @Autowired
    private DictCacheService dictCacheService;

    @Override
    public void run(String... args) throws Exception {

        dictCacheService.cacheAllDict();
    }
}
